export default {
  methods: {
      handleResize(myCharts) {
          if (myCharts) {
              window.onresize = () => {
                  myCharts && myCharts.resize();
              }
          }
      },
      showLoading(myCharts) {
          myCharts.showLoading({
              text: '数据加载中...',
              color: '#c23531',
              textColor: '#ffffc2',
              maskColor: 'rgba(0, 0, 0, .9)',
              zlevel: 0
          })
      },
      hideLoading(myCharts) {
          myCharts.hideLoading();
      }
  },
}